//
//  MZNewsViewController.h
//  Mehfile Zainab
//
//  Created by Sitara Badourali on 17/04/12.
//  Copyright 2012 Mehfile Zainab. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "URLCacheConnection.h"
#import "MZTableViewController.h"

//@interface MZNewsViewController : UITableViewController <URLCacheConnectionDelegate> {
@interface MZNewsViewController : MZTableViewController <URLCacheConnectionDelegate> {
	NSMutableArray *newsArray;
    
   	UIActivityIndicatorView* spinner;
    
   	UIAlertView* alertView;
	
   	NSString *dataPath;
	NSError *error;
	NSMutableArray *urlArray;
	NSString *filePath;
	NSDate *fileDate;
	URLCacheConnection *connection;
    BOOL XMLParsed;
    BOOL alertDisplayed;
    //UIRefreshControl *refresh;
    
}

@property (nonatomic,retain) NSMutableArray *newsArray;

@property (nonatomic, retain) UIActivityIndicatorView* spinner;

@property (nonatomic, retain) UIAlertView* alertView;

@property (nonatomic, copy) NSString *dataPath;
@property (nonatomic, retain) NSMutableArray *urlArray;
@property (nonatomic, copy) NSString *filePath;
@property (nonatomic, retain) NSDate *fileDate;
@property (nonatomic, retain) URLCacheConnection *connection;
@property BOOL XMLParsed;
@property BOOL alertDisplayed;
//@property (nonatomic, retain) UIRefreshControl *refresh;

- (void) loadDataWithURL:(NSURL *)theURL;

@end
